import { createStore } from "vuex";

const store = createStore({
    state(){
        return {
            userInfo:{}
        }
    },
    mutations:{
        updateUserInfo(state,userInfo){
            console.log('userInfo', userInfo);
            state.userInfo = payload.userInfo
        }
    }

})

export default store
